package com.example.data.factory.entity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author lhy
 * @since 2025-04-21
 */
@Getter
@Setter
@ApiModel(value = "Node对象", description = "")
public class Node implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("节点id")
    @TableId(value = "node_id", type = IdType.AUTO)
    private Integer nodeId;

    @ApiModelProperty("所属任务id")
    private Integer taskId;

    @ApiModelProperty("节点类型 (START, API, SCRIPT, MAPPING, OUTPUT, END)")
    private String nodeType;

    @ApiModelProperty("节点名称")
    private String nodeName;

    @ApiModelProperty("节点在画布中的X坐标")
    private Integer positionX;

    @ApiModelProperty("节点在画布中的Y坐标")
    private Integer positionY;

    @ApiModelProperty("节点配置信息 (JSON格式)")
    private String config;

    @ApiModelProperty("异常处理码表ID")
    private String errorHandlingCode;

    @ApiModelProperty("节点描述")
    private String nodeDescription;
}
